Displaying syntax errors in the SNiFF+ Log tool

The Fortran Parser exactly parses correct programs. Note that the Parser can also provide symbol information to SNiFF+ for incomplete or non-compilable programs. However, symbol information obtained from such programs may lead to inconsistencies in the way symbols are displayed and highlighted in SNiFF+.
You can have SNiFF+ report any syntax errors it comes across when parsing Fortran source files. These errors are displayed in the Log tool. When you parse new files or reparse already-parsed files, the Log tool displays messages about possible syntax errors, warnings and information about which files were parsed and how the syntax errors were handled. These messages include a position field which indicates the line and column in the parsed source file which resulted in the error. By correcting any syntax errors that the Parser comes across, and then reparsing the files in question, you can guarantee that SNiFF+ receives accurate symbol information.
To see how the syntax error option works, let's first set it:

In the Project Editor, choose Project > Attributes of Checkmarked Projects....
The Group Project Attributes dialog appears.
Select the Build Options - Directives node.
In the Directives view, enter

-e in the Preprocessor Directive(s) field. Also click on the check box directly to the right of the field.
This switches on the syntax error option for all the projects.
Press the Set for All button to apply the settings.
Press Ok to apply the changes to all the projects.

Now let's introduce a syntax error into an error-free file and see what happens:

Load the file

evclid3.f into a Source Editor and position the cursor to line 1621 of the file. This line contains the following code:
double precision function abv(v1)
Introduce the syntax error by changing line 1621 to the following:
double precision functio abv(v1)
Open the Log tool by choosing Tools > Log in any open tool.
Save evclid3.f . The file will now be reparsed.
Take a look at the Log tool. Look for the following message:
Error (sniff_fortran_fixed): C:/sniff31beta/example/fortran/ routines/../commons/common.inc(1621)c24: [RECURSIVE]FUNCTION name expected
As you can see from this message, the Parser found the error which you just introduced.
Take a look at the Source Editor's Symbol List. You should notice the following entry in it:
FUNCTIOABV (s)
This entry is obviously a result of the syntax error in line 1621.
Take a look at the Info menu. You should be able to notice other inconsistencies that are due to line 1621.
Fix the syntax error in line 1621 and resave (reparse) file evclid3.f . Notice that no errors are reported in the Log tool. Furthermore, the Source Editor's Symbol List no longer contains the entry FUNCTIOABV (f).